#include <stdio.h>

int DEL_Element(int L[], int length, int p)
{
    int i = 0;
    if (p <= 0 || p >= length - 1)
    {
        return 0;
    }

    for (i = p; i < length; i++)
    {
        L[i] = L[i + 1];
    }
    
    return 1;
}

int main(int argc, char const *argv[])
{
    int L[5] = {1, 3, 5, 7, 9};
    int p = 2;
    DEL_Element(L, 5, p);
    for (int j = 0; j < 5; j++)
    {
        printf("%d ", L[j]);
    }
    printf("\n");
    return 0;
}
